package com.huike.clues.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.huike.clues.domain.TbClueTrackRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huike.clues.domain.vo.CluePageVo;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import com.huike.clues.result.TbClueTrackRecordVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 93238
* @description 针对表【tb_clue_track_record(线索跟进记录)】的数据库操作Mapper
* @createDate 2023-10-12 06:35:46
* @Entity com.huike.clues.domain.TbClueTrackRecord
*/
public interface
        TbClueTrackRecordMapper extends BaseMapper<TbClueTrackRecord> {

    /**
     * 新增线索跟进记录
     * @param id
     * @return
     */
    @Select("select * from tb_clue_track_record where id = #{id} ")
    ClueTrackRecordVo clue (TbClueTrackRecord id);

    /**
     * 查询线索跟进记录列表
     *
     * @param clueId
     * @return
     */

    @Select("select * from tb_clue_track_record where clue_id = #{clueId}")
    List<TbClueTrackRecordVO> selectTbClueTrackRecordList(Long clueId);

    /**
     * 获取线索跟进记录详细信息
     *
     * @param
     * @return
     */

    @Select("select * from tb_clue where id = #{id}")
    CluePageVo selectOne(LambdaQueryWrapper<CluePageVo> wrapper);
}




